local skynet = require "skynet"
local sprotoloader = require "sprotoloader"
--Wg的协议
local sprotoName = skynet.getenv('sproto') or 'sproto'
local sprotoMod = require(sprotoName)

-- don't call skynet.exit() , because sproto.core may unload and the global slot become invalid
skynet.start(function()
	sprotoloader.save(sprotoMod.c2s, 1)
	sprotoloader.save(sprotoMod.s2c, 2)
end)
